package com.example.mapper;

import com.example.entity.Grade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface GradeMapper {
    int insert(Grade grade);
    int deleteById(Long id);
    int updateById(Grade grade);
    Grade selectById(Long id);
    List<Grade> selectList(@Param("grade") Grade grade);
    long selectCount(@Param("grade") Grade grade);
    List<Grade> selectByStudentId(@Param("studentId") Long studentId);
    List<Grade> selectByCourseId(@Param("courseId") Long courseId);
}